package org.onionframework.persistence.dao.dynamic;

import org.apache.commons.lang3.StringUtils;

import freemarker.template.Template;

public class SqlStatementTemplate extends StatementTemplate {

	public static final String RESULT_TYPE_MAP = "map";
	public static final String RESULT_TYPE_ARRAY = "array";
	
	private String resultType;
	
	public SqlStatementTemplate(StatementType type, Template template, String resultType) {
		super(type, template);
		this.resultType = resultType;
		if(StringUtils.isBlank(this.resultType))
			this.resultType = RESULT_TYPE_ARRAY;
	}

	public String getResultType() {
		return resultType;
	}
}
